<ion-view view-title="客户实名认证" name="login-view">
  <ion-nav-bar class="item-customer-bg-darkred" align-title="center">
    <ion-nav-back-button class="button-clear">
      <i class="ion-arrow-left-c font_arrow"></i>
    </ion-nav-back-button>
  </ion-nav-bar>

  <div class="tabs-striped tabs-top  tabs-background-stable">
    <div class="tabs">
      <!--<a class="tab-item" ng-click="selectTab('tab-1')">-->
      <!--绑定工号-->
      <!--</a>-->
      <a class="tab-item" ng-click="selectTab('tab-1')">
        身份证入口
      </a>
      <a class="tab-item" ng-click="selectTab('tab-2')">
        国政通入口
      </a>
    </div>
  </div>

  <ion-content class ="ywkh_content_bg">
    <div class="" style="border-bottom: solid #ddd 1px">
      <div class="ywkh_jd">&nbsp;</div>
    </div>

<div class="content has-header" ng-show="showTab=='tab-1'">
    <form name="khrwformstep1" novalidate>
      <div class="list list-inset">

        <div class="item item-input">
          <div class="font_info2 col col-25">客户姓名</div>
          <div class="col col-50"><input class="ywkh_input2" type="text" ng-model="params.IdCard.name" readonly/></div>
          <div class="col col-25"><button class="button bt_idcard" ng-click="ReadIdCard()">身份证验证</button></div>
        </div>

        <label class="item item-input">
          <div class="font_info2 col col-25">身份证号码</div>
          <div class="font_info2 col col-75"><input class="ywkh_input2" type="text" ng-model="params.IdCard.cardNo" readonly/></div>
        </label>

        <label class="item item-input">
          <div class="font_info2 col col-25">客户性别</div>
          <div class="font_info2 col col-75"><input class="ywkh_input2" type="text" ng-model="params.IdCard.sex" readonly/></div>
        </label>

        <label class="item item-input">
          <div class="font_info2 col col-25">证件地址</div>
          <div class="font_info2 col col-75"><input id="step1_address" name="address" type="text" ng-model="params.IdCard.address" readonly/></div>
        </label>

        <label class="item item-input">
          <div class="font_info2 col col-25">出生日期</div>
          <div class="font_info2 col col-75"><input class="ywkh_input2" type="text" ng-model="params.IdCard.birth" readonly/></div>
        </label>

        <label class="item item-input">
          <div class="font_info2 col col-25">通信地址</div>
          <div class="font_info2 col col-75"><input name="address" type="text" ng-model="params.IdCard.address" readonly/></div>
        </label>

        <label class="item item-input">
          <div class="font_info2 col col-25">联系人</div>
          <div class="font_info2 col col-75"><input class="ywkh_input2" name="ConPer" type="text" ng-model="params.IdCard.name" readonly/></div>
        </label>

        <label class="item item-input">
          <div class="font_info2 col col-25">联系电话</div>
          <div class="font_info2 col col-75"><input class="ywkh_input2" name="ConTel" type="text" ng-model="params.ConTelNum" ng-pattern="/^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/i" required/></div>
        </label>


      </div>


      <div class="row">
        <div class="col col-50">
          <button  class="button button-full wkh_button_light" ng-click="reset()">重置</button><!--{{khrwformstep1.$valid}}可以验证整个表单是否通过验证-->
        </div>
        <div class="col col-50">

          <!--<a class="button button-full wkh_button_dark" ng-click="checkperson()">下一步</a>-->

          <a class="button button-full wkh_button_dark" ng-disabled="!((params.step1==1)&&(khrwformstep1.$valid))" ng-click="checkperson()">下一步</a>

        </div>
      </div>

    </form>
</div>
    <div class="content has-header" ng-show="showTab=='tab-2'">
      <form name="khrwformstep1" novalidate>
        <div class="list list-inset" style="margin: 5px 10px">

          <div class="item item-input">
            <div class="font_info2 col col-25">客户姓名</div>
            <div class="col col-50"><input class="ywkh_input2" type="text" ng-model="params.GuoZhengtong.name"/></div>
            <div class="col col-25"></div>
          </div>

          <label class="item item-input">
            <div class="font_info2 col col-25">身份证号码</div>
            <div class="font_info2 col col-75"><input class="ywkh_input2" type="text" ng-model="params.GuoZhengtong.cardNo"/></div>
          </label>

          <label class="item item-input">
            <div class="font_info2 col col-25">证件有效期</div>
            <div class="font_info2 col col-75"><input class="ywkh_input2" type="text" ng-model="params.GuoZhengtong.youxiaoqi" placeholder="证件有效期，格式：20360501"/></div>
          </label>

         </div>

        <div class="row">
          <div class="font_info2 col col-25">&nbsp;</div>
          <div class="col col-47">&nbsp;</div>
          <div class="col col-28"align="right"><button class="button bt_idcard" ng-click="CheckGuozt()">国政通验证</button></div>
        </div>

         <div class="list list-inset" style="margin: 5px 10px">
          <label class="item item-input">
            <div class="font_info2 col col-25">客户性别</div>
            <div class="font_info2 col col-75"><input class="ywkh_input2" type="text" ng-model="params.IdCard.sex" readonly/></div>
          </label>

          <label class="item item-input">
            <div class="font_info2 col col-25">证件地址</div>
            <div class="font_info2 col col-75"><input id="step1_address1" name="address" type="text" ng-model="params.IdCard.address" readonly/></div>
          </label>

          <label class="item item-input">
            <div class="font_info2 col col-25">出生日期</div>
            <div class="font_info2 col col-75"><input class="ywkh_input2" type="text" ng-model="params.IdCard.birth" readonly/></div>
          </label>

          <label class="item item-input">
            <div class="font_info2 col col-25">通信地址</div>
            <div class="font_info2 col col-75"><input name="address" type="text" ng-model="params.IdCard.address" readonly/></div>
          </label>

          <label class="item item-input">
            <div class="font_info2 col col-25">联系人</div>
            <div class="font_info2 col col-75"><input class="ywkh_input2" name="ConPer" type="text" ng-model="params.IdCard.name" readonly/></div>
          </label>

          <label class="item item-input">
            <div class="font_info2 col col-25">联系电话</div>
            <div class="font_info2 col col-75"><input class="ywkh_input2" name="ConTel" type="text" ng-model="params.ConTelNum" ng-pattern="/^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/i" required/></div>
          </label>


        </div>


        <div class="row">
          <div class="col col-50">
            <button  class="button button-full wkh_button_light" ng-click="reset()">重置</button><!--{{khrwformstep1.$valid}}可以验证整个表单是否通过验证-->
          </div>
          <div class="col col-50">
            <!--
                      <a class="button button-full wkh_button_dark" ng-click="checkperson()">下一步</a>
            -->
            <a class="button button-full wkh_button_dark" ng-disabled="!((params.step1==1)&&(khrwformstep1.$valid))" ng-click="checkperson()">下一步</a>

          </div>
        </div>

      </form>
    </div>
  </ion-content>
</ion-view>
<!--浮动框-->
<script id="check2.html" type="text/ng-template">
  <div>身份校验不通过！</div>
  <div>{{params.errorReason}}</div>
  <div><button class="button bt_idcard" ng-click="hideLoading()">关闭</button></div>
</script>

